package com.zhuoyue.system.service;

import com.zhuoyue.common.core.domain.ChartData;
import com.zhuoyue.system.domain.po.SelectTimePo;

import java.util.List;

/**
 * @author zhanghui
 */
public interface ISysIndexPageDataService {
    /**
     * 获取昨日新增用户数量
     *
     * @param orgCode
     * @return
     */
    int getYesterdayRegisterCount(SelectTimePo selectTimePo);


    List<ChartData> getRegisterChartData(SelectTimePo selectTimePo);

    /**
     * 获取昨日活跃数量
     *
     * @param orgCode
     * @return
     */
    int getYesterdayActiveCount(SelectTimePo selectTimePo);

    List<ChartData> getActiveChartData(String orgCode);

    /**
     * 获取接口访问数量
     *
     * @param orgCode
     * @return
     */
    Integer getApiAccessCount(SelectTimePo selectTimePo);

    /**
     * 获取消息数量
     *
     * @param orgCode
     * @return
     */
    int getMessageCount1(SelectTimePo selectTimePo);
    int getMessageCount2(SelectTimePo selectTimePo);
    int getMessageCount3(SelectTimePo selectTimePo);
    int getMessageCount4(SelectTimePo selectTimePo);
    int getMessageCount5(SelectTimePo selectTimePo);
    int getMessageCount6(SelectTimePo selectTimePo);

    List<ChartData> getDeviceChartData(SelectTimePo selectTimePo);

    List<ChartData> getTopTenDeviceChartData(SelectTimePo selectTimePo);

    int getProductInfoCount(String orgCode);

    /**
     * 按组织编码查询网关地理位置
     *
     * @param orgCode
     * @return
     */
    List<ChartData> getGatewayGeoChartData(SelectTimePo selectTimePo);
}
